﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Expect.Core.Interfaces
{
    /// <summary>
    /// Type converter used by the framework
    /// </summary>
    public interface IExpectTypeConverter
    {
        /// <summary>
        /// Convert from a string to the custom type
        /// </summary>
        /// <param name="text">text representation of the type</param>
        /// <returns></returns>
        object Convert(string text);
    }

    /// <summary>
    /// Type converter used by the framework
    /// </summary>
    /// <typeparam name="T"></typeparam>
    public interface IExpectTypeConverter<out T> : IExpectTypeConverter
    {
        /*/// <summary>
        /// Convert from a string to the custom type
        /// </summary>
        /// <param name="text">text representation of the type</param>
        /// <returns></returns>
        T Convert(string text);*/
    }
}
